#include <iostream>
#include <json/json.h>
#include <string>
int main(){

    Json::Value root;
    root["name"] = "郑登亮";
    root["age"] = 20;
    Json::StreamWriterBuilder writer;
    writer["emitUTF8"] = true;
    std::string jsonStr = Json::writeString(writer, root);

    std::cout << "root: \r\n" << jsonStr << std::endl;
    return 0;
}